import { defineStore } from 'pinia'
import type { Parameter } from '@/types/ParameterType'

interface AllYouNeedIsStore {
  standards: _standard[]
}

export interface _standard {
  id: number
  name: string
  parameters: CreateParameter[]
}

export interface CreateParameter extends Parameter {
  edit: boolean
}

export const useStandard_Parameterstore = defineStore('standard_parameter', {
  state: (): AllYouNeedIsStore => {
    return {
      standards: []
    }
  },
  persist: true
})
